package com.visitor.demo2.impl;

import com.visitor.demo2.GraphicVisitor;
import com.visitor.demo2.MyGraphic;

//MyCircle.java 圆形类
public class MyCircle extends MyGraphic
{
    public float radius;

    public MyCircle()
    {
        super();
        radius = 1;
    }

    public MyCircle(float centerPointX, float centerPointY, float radius, float angle)
    {
        super("Circle", centerPointX, centerPointY, angle);
        this.radius = radius;
    }

    public void accept(GraphicVisitor v)
    {
        v.visit(this);
    }
}